{% extends "base.html" %}
{% block title %}Solicitud de Cambio{% endblock %}
{% block body %}
  <h2>Solicitud de Cambio</h2>
  {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}
  <form action="" method=post>
      <table>
          <TR>
              <TD><input type=submit name="action" value=Ver></TD>
              <TD><input type=submit name="action" value=Crear></TD>
              <TD><input type=submit name="action" value=Modificar></TD>
              <TD><input type=submit name="action" value=Eliminar></TD>
              <TD><input type=submit name="action" value=Enviar></TD>
              <TD><button type=submit name="action" value=Salir>Regresar</button></TD>
          </TR>
        </table>
        <table>
          <tr>
              <td><input type=submit name="action" value=Reporte></td>
              <td><input type=submit name="action" value=Votar></td>
          </tr>
      </table>
      <br>
      <table>
          <TR>
              <TD>Seleccionar</TD>
              <TD>Identificador</TD>
              <TD>Descripci&oacute;n</TD>
              <TD>Impacto</TD>
              <TD>Estado</TD>
              <TD>Votos a favor</TD>
              <TD>Fecha</TD>
              <TD>Solicitante</TD>
          </TR>
          {% for item in items %}
          <TR>
            <td><input type=checkbox name=seleccionados value={{item.id}}></td>
            <TD class="c1">{{item.id}}</TD>
            <TD class="c2">{{item.descripcion}}</TD>
            <TD class="c3">{{item.impacto}}</TD>
            <TD class="c4">{{item.estado}}</TD>
            <TD class="c5">{{item.votos}}</TD>
            <TD class="c6">{{item.fecha}}</TD>
            <TD class="c7">{{item.solicitante}}</TD>
          </TR>
          {% endfor %}
      </table>
    </form>
{% endblock %}
